from flask.ext.migrate import Migrate, MigrateCommand
from flask.ext.script import Manager

from info import app, db

manager = Manager(app)
# 数据库迁移
Migrate(app, db)
manager.add_command("db", MigrateCommand)


@app.route('/')
def hello_world():
    return 'Hello World!'


if __name__ == '__main__':
    manager.run()
